home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / makefile.ami < prev    next >
Makefile  |  1995-12-30  |  2KB  |  83 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. #                Gershon Elber, Nov. 1991
  6. #
  7.  
  8. include makeflag.ami
  9.  
  10. #
  11. # All subdirectories to recurse into.
  12. #
  13. ALL_DIRS = amigalib xtra_lib misc_lib cagd_lib symb_lib triv_lib trim_lib \
  14.     prsr_lib geom_lib bool_lib circlink \
  15.     grapdrvs irit poly3d-h illustrt filters docs
  16.  
  17. #
  18. # Uncommend the following variable to only see the actions taken.
  19. #
  20. # VIEW_ONLY = -n
  21.  
  22. SHELL = /bin/sh
  23.  
  24. all:     binaries doc init
  25.  
  26. #
  27. # Print info regarding initialization.
  28. #
  29. init:
  30.     @echo "Before executing the test suite and/or any usage of this"
  31.     @echo "package you will have to issue the following commands:"
  32.     @echo ""
  33.     @echo "path $(BIN_DIR) add"
  34.     @echo "setenv IRIT_PATH $(BIN_DIR)/"
  35.     @echo "setenv IRIT_DISPLAY \"amidrvs -s-\""
  36.     @echo ""
  37.     @echo "and optionally the following commands:"
  38.     @echo ""
  39.     @echo "setenv IRIT_BIN_IPC 1"
  40.     @echo ""
  41.     @echo "or similar."
  42.  
  43. binaries:
  44.     -for f in $(ALL_DIRS); do \
  45.         (cd $$f \
  46.          && /bin/echo ----------- `pwd` ------------- \
  47.          && make $(VIEW_ONLY) -f makefile.ami install); \
  48.     done
  49. #    -strip $(BIN_DIR)/*
  50.  
  51. #
  52. # Make hardcopy documentation.
  53. #
  54. doc:
  55.     (cd docs && \
  56.      make $(VIEW_ONLY) -f makefile.ami irit.tex irit.doc)
  57.  
  58. clean:
  59.     -rm .~* .\#*            # Emacs backup files.
  60.     -for f in $(ALL_DIRS); do \
  61.         (rm $$f/*.a $$f/*.o $$f/*mon.out $$f/.~* $$f/.\#* $$f/*mon.out); \
  62.     done
  63.     -rm poly3d-h/*.hdn
  64.     -rm irit/*.dat
  65.     -rm lib/*.a
  66.     -rm docs/irithlp docs/irithlp.o
  67.  
  68. #
  69. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  70. # and that IRIT_LCLDISP is set ('setenv IRIT_LCLDISP x11drvs').
  71. #
  72. test:
  73.     -(cd irit && irit demo)
  74.     -for f in poly3d-h illustrt filters; do \
  75.         (cd $$f && csh -f test-unx); \
  76.     done
  77.  
  78. depend:
  79.     -for f in $(ALL_DIRS); do \
  80.         (cd $$f && makedepend -Y -I../include -fmakefile.unx *.c \
  81.             && makedepend -Y -I../include -fmakefile.os2 *.c ) \
  82.     done
  83.